package com.examples.service;

import com.examples.service.fallback.FeignProduceServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "nacos-produce-service-local-config",fallback = FeignProduceServiceFallback.class)
public interface FeignProduceService {

    @RequestMapping("/produce/hello")
    public String hello(@RequestParam("name")  String name);

}
